{extend name="property/public/insidePageBase" /}
{block name="title"}设备余额充值{/block}
{block name="body"}
<div class="layuimini-container">
    <div class="layuimini-main">
        <div class="layui-form layui-form-pane">
            <div class="layui-row">
                <div class="layui-col-xs7">
                    <div class="layui-form-item">
                        <label class="layui-form-label indispensable">设备信息</label>
                        <div class="layui-input-block">
                            <input type="text" disabled value="{$info['energy_name']??''}【{$info['energy_no']??''}】" autocomplete="off" class="layui-input">
                        </div>
                    </div>
                </div>
                <div class="layui-col-xs5">
                    <div class="layui-form-item">
                        <label class="layui-form-label indispensable">当前余额</label>
                        <div class="layui-input-block">
                            <input type="text" disabled value="{$info['balance']}  ¥" autocomplete="off" class="layui-input">
                        </div>
                    </div>
                </div>
            </div>
            <div class="layui-form-item" pane="">
                <label class="layui-form-label">支付方式</label>
                <div class="layui-input-block">
                    <input type="radio" name="pay_method" autocomplete="off" value="1" title="微信">
                    <input type="radio" name="pay_method" autocomplete="off" value="2" title="支付宝">
                    <input type="radio" name="pay_method" autocomplete="off" value="3" title="银联">
                    <input type="radio" name="pay_method" autocomplete="off" value="4" title="现金">
                    <input type="radio" name="pay_method" autocomplete="off" value="5" title="企业微信">
                </div>
            </div>
            <div class="layui-row">
                <div class="layui-col-xs6">
                    <div class="layui-form-item" pane="">
                        <label class="layui-form-label indispensable">充值方式</label>
                        <div class="layui-input-block">
                            <input type="radio" name="is_type" autocomplete="off" value="1" title="增加" checked>
                            <input type="radio" name="is_type" autocomplete="off" value="2" title="减少">
                        </div>
                    </div>
                </div>
                <div class="layui-col-xs6">
                    <div class="layui-form-item">
                        <label class="layui-form-label indispensable">充值金额</label>
                        <div class="layui-input-block">
                            <input type="text" name="pay_amount"  autocomplete="off"  class="layui-input" placeholder="请输入充值金额" oninput="value=value.replace(/^\D*(\d*(?:\.\d{0,2})?).*$/g, '$1')">
                        </div>
                    </div>
                </div>
            </div>
            <div class="layui-form-item layui-form-text">
                <label class="layui-form-label">备注说明</label>
                <div class="layui-input-block">
                    <textarea placeholder="请输入备注说明" class="layui-textarea" name="remark"></textarea>
                </div>
            </div>
            <div class="layui-form-item layui-hide">
                <button class="layui-btn" lay-submit lay-filter="submitBtn" id="submitBtn">提交</button>
            </div>
        </div>
    </div>
</div>
{/block}
{block name="js"}
{__block__}
<script>
    layui.use(['form'], function () {
        var form = layui.form;
    });
</script>
{/block}